﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="AddRaffleListMaster.aspx.vb"
    Inherits="Arwani.Backend_AddEditRaffleListMaster" %>

<%@ Register Src="Menu.ascx" TagName="Menu" TagPrefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title> Arwani Backend Panel</title>
    <style type="text/css">
        .style1
        {
            height: 31px;
        }
    </style>

     <script src="../tiny_mce/tiny_mce.js" type="text/javascript"></script>
    
    <script type="text/javascript" language="javascript">
        tinyMCE.init({
            // General options
            mode: "textareas",
            theme: "advanced",
            plugins: "pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups",
           
        });
    </script>

    <script type="text/javascript">
        function popupCalendar() {
            var dateField = document.getElementById('calStartDate');
            var dateField2 = document.getElementById('calEndDate');
            dateField2.style.display = 'none'
            // toggle the div
            if (dateField.style.display == 'none')
                dateField.style.display = 'block';
            else
                dateField.style.display = 'none';
        }


        function popupCalendarEnd() {
            var dateField = document.getElementById('calEndDate');
            var dateField2 = document.getElementById('calStartDate');
            dateField2.style.display = 'none'
            // toggle the div
            if (dateField.style.display == 'none')
                dateField.style.display = 'block';
            else
                dateField.style.display = 'none';
        }
</script>
</head>
<body>
    <form id="form1" runat="server">
    
    <div>
    <asp:Panel ID="pnlAdd" runat="server" DefaultButton="btnSubmit">
        <table border="0" cellpadding="3" cellspacing="3" width="100%">
            <tr>
                <td align="center">
                    <uc1:Menu ID="Menu1" runat="server" />
                </td>
            </tr>
            <tr>
                <td align="center" >
                    <table border="0" cellpadding="3" cellspacing="3" width="80%">
                        <tr>
                            <td align="center">
                                <table cellpadding="3" cellspacing="3" class="style1" border="0" width="75%">
                                    <tr>
                                        <td colspan="2" align="center" >
                                            <asp:Label ID="lblBrandHead" runat="server"  Font-Size="XX-Large" 
                Font-Underline="True" ForeColor="Black" Text="Add RaffleList Master"></asp:Label>
                                        </td>
                                        <td>&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td colspan="2" align="center" style="height:10px">
 <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
                                         </td>
                                           <td></td>
                                    </tr>

                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="lblContactName" runat="server" Text="Name"></asp:Label>
                                        </td>
                                        <td align="left">
                                            <asp:TextBox ID="txtName" runat="server" Width="222px" CssClass="form-control"></asp:TextBox>
                                            <asp:RequiredFieldValidator
                                                ID="RequiredFieldValidator1" runat="server"  Display="Dynamic" ErrorMessage="Required!" style="color:Red;" ControlToValidate="txtName" ValidationGroup="submit"></asp:RequiredFieldValidator>
                                        </td>
                                        <td  rowspan="10"  valign="top">
                                        <asp:Calendar ID="calStartDate" runat="server" style="display:none;"></asp:Calendar>
                                        <br /><br />
                                          <asp:Calendar ID="calEndDate" runat="server" style="display:none;"></asp:Calendar>
                                        </td>
                                    </tr>
                                      <tr><td style="line-height:5px;">&nbsp;</td></tr>
                                    <tr>
                                        <td align="left" style="width:30%;">
                                           
                                            <asp:Label ID="lblStartDate" runat="server" Text="Start Date"></asp:Label>
                                        </td>
                                        <td align="left" style="width:40%;" >
                                         <table>
                                         <tr>
                                         <td>
                                          <asp:TextBox ID="TextBox1" runat="server" CssClass="form-control" Width="100px"></asp:TextBox>
                                         </td>
                                         <td>
                                          <img src="../images/Calendar-icon.gif" alt="Start Date" style="width:20px;height:20px;"  onclick="popupCalendar()" />
                                           <asp:RequiredFieldValidator
                                                ID="RequiredFieldValidator2" runat="server"  Display="Dynamic" ErrorMessage="Required!" style="color:Red;" ControlToValidate="TextBox1" ValidationGroup="submit"></asp:RequiredFieldValidator>
                                         </td>
                                         </tr>
                                         </table>
                                           
                                          
                                          
                                        </td>
                                        <td >
                                         
                                        </td>
                                    </tr>
                                      <tr><td style="line-height:5px;">&nbsp;</td></tr>
                                    <tr>
                                        <td align="left" class="style1">
                                            <asp:Label ID="lblEndDate" runat="server" Text="End Date"></asp:Label>
                                        </td>
                                        <td align="left" class="style1">
                                        <table>
                                        <tr>
                                        <td>
                                          <asp:TextBox ID="TextBox2" runat="server" CssClass="form-control" Width="100px"></asp:TextBox>
                                        </td>
                                        <td>
                                            <img src="../images/Calendar-icon.gif" alt="End Date" style="width:20px;height:20px;"  onclick="popupCalendarEnd()" />
                                            <asp:RequiredFieldValidator
                                                ID="RequiredFieldValidator3" Display="Dynamic" runat="server" ErrorMessage="Required!" style="color:Red;" ControlToValidate="TextBox2" ValidationGroup="submit"></asp:RequiredFieldValidator>
                                        </td>
                                        </tr>
                                        </table>
                                          
                                     
                                            
                                        </td>
                                       
                                    </tr>
                                      <tr><td style="line-height:5px;">&nbsp;</td></tr>
                                      <tr>
                                      <td align="left"><asp:Label runat="server" ID="lblMessage" Text="Message" AssociatedControlID="txtMessage"></asp:Label></td>
                                      <td align="left">
                                     <asp:TextBox runat="server" ID="txtMessage" TextMode="MultiLine" Rows="5" Columns="50"></asp:TextBox>                                      </td>
                                      <td>
                                      
                                      </td>
                                      </tr>
                                       <tr><td style="line-height:5px;">&nbsp;</td></tr>
                                    <tr>
                                        <td align="left">
                                            <asp:Label ID="lblDesc" runat="server" Text="Description"></asp:Label>
                                        </td>
                                        <td align="left">
                                          
                                           
                                        </td>
                                         <td></td>
                                    </tr>
                                    <tr>
                                     <td colspan="3">
                                      <asp:TextBox ID="txtDesc" runat="server" Width="500px" Height="240px"  TextMode="MultiLine" ></asp:TextBox>
                                      </td>
                                    </tr>

                                     <tr><td style="height:5px;">&nbsp;</td></tr>
                                     <tr>
                                        <td align="left">
                                            <asp:Label ID="lblActive" runat="server" Text="Active"></asp:Label> &nbsp;  <asp:CheckBox ID="ChkActive" runat="server" />
                                        </td>
                                        <td align="left">
                                           
                                           
                                        </td>
                                         <td></td>
                                    </tr>
                                          <tr><td style="height:5px;">&nbsp;</td></tr>
                                     <tr>
                                        <td align="center" colspan="2">
                                            <asp:Button ID="btnSubmit" runat="server" Text="Save" ValidationGroup="submit"/>
                                            &nbsp;<asp:Button ID="btnCancel" runat="server" Text="Cancel" />
                                        </td>
                                          <td></td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;
                                        </td>
                                        <td>
                                            &nbsp;
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        </asp:Panel>
    </div>
    </form>
</body>
</html>
